05. Notebook + Quiz: Fitting Logistic Regression in Python

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

QUIZ QUESTION: :

Match the corresponding value to the correct description.

ANSWER CHOICES:



Description

Value

0.988

0.012

0.345

0.655

4.62

30.01

SOLUTION:

Description

Value

0.012

0.345

4.62

30.01

Which variables are statistically significant for predicting fraud? Check all that apply.

SOLUTION:
  • Duration.
  • Weekday.

Advanced Question - for after you watch the next videos - Which of the following interpretations are correct with regard to your coefficients? Check all that apply.

SOLUTION:
  • On weekdays, the chance of fraud is 12.76 times more likely than on weekends holding duration constant.
  • For each minute less spent on the transaction, the chance of fraud is 4.32 times more likely holding the day of week constant.